package demo;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2021/10/30
 * Time: 9:20
 * Description:
 */
class A {
    static {
        System.out.println("A的静态");
    }
    {
        System.out.println("A的实例代码块");
    }
    public A() {
        System.out.println("A的构造方法");
    }
}
 class B extends A {
    static {
        System.out.println("B的静态");
    }
    {
        System.out.println("B的实例代码块");
    }
    public B() {
        System.out.println("B的构造方法");
    }
     /*static class  ggg{

     }*/
}
interface IA {

}
public class Test {

    public static void main(String[] args) {
        B b = new B();
    }
}
